package io;

public class AnimalHolder implements ByteSerializable {

   private int size;
   private Animal animal;
   
   public AnimalHolder(int size, Animal animal) {
      this.size = size;
      this.animal = animal;
   }

   @Override
   public Object[] getConstructorObject() {
      return new Object[] {size, animal};
   }

   @Override
   public String toString() {
      return "AnimalHolder [size=" + size + ", animal=" + animal + "]";
   }

}
